package cn.echoedu.specifics;

import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;

import cn.echoedu.daoconstants.TableName;
import cn.echoedu.entity.FeedBack;
import cn.echoedu.entity.Student;
import cn.echoedu.util.L;

public class SpecFeedBack {
	
	private final static String T="SpecFeedBack-------->";
	
	public <T> PreparedStatement addFeedBack(Connection con,
			TableName tableName,T currentPojo)throws SQLException{
		L.gpi(T);
		FeedBack currentstudent=(FeedBack)currentPojo;
		PreparedStatement preparedstatement=con.prepareStatement("insert into "
				+tableName+" (content,contactinfo)" +
				" VALUES(?,?)");
		preparedstatement.setString(1,currentstudent.getContent());
		preparedstatement.setString(2,currentstudent.getContactinfo());
		return preparedstatement;

	}
	
}
